package com.rockcent.mall.lib.domain;

import com.rockcent.common.domain.IDEntityMall;
import com.rockcent.mall.lib.domain.enumclass.SaleProtocolStatus;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

/**
 * Created by DK on 16/9/20.
 * 分销市场商家
 */
@Entity
@Table(name = "market_merchant")
@DynamicInsert
@DynamicUpdate
public class MarketMerchant extends IDEntityMall {

    @Column(columnDefinition = "bigint comment '平台ID'")
    private Long mallId;

    @Column(columnDefinition = "bigint comment '商家ID'")
    private Long merchantId;

    @Column(columnDefinition = "bit comment '是否签订协议'")
    private Boolean saleProtocolStatus;

    public Long getMallId() {
        return mallId;
    }

    public void setMallId(Long mallId) {
        this.mallId = mallId;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public Boolean getSaleProtocolStatus() {
        return saleProtocolStatus;
    }

    public void setSaleProtocolStatus(Boolean saleProtocolStatus) {
        this.saleProtocolStatus = saleProtocolStatus;
    }

    @Override
    public String toString() {
        return "MarketMerchant{" +
                "mallId=" + mallId +
                ", merchantId=" + merchantId +
                ", id=" + id +
                ", saleProtocolStatus=" + saleProtocolStatus +
                ", dateCreated=" + dateCreated +
                ", lastUpdated=" + lastUpdated +
                ", isDelete=" + isDelete +
                ", version=" + version +
                '}';
    }
}
